package by.euanpa.android.grodnobusstop.ui.bs.all;

import java.util.List;

import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import android.support.v4.content.Loader;
import by.euanpa.android.grodnobusstop.bo.BusStop;
import by.euanpa.android.grodnobusstop.loader.BusStopLoader;

public class AllBusStopFragment extends ListFragment implements LoaderCallbacks<List<BusStop>>{

	@Override
	public Loader<List<BusStop>> onCreateLoader(int id, Bundle data) {
		return new BusStopLoader(getActivity()) {
			
			@Override
			protected String getBusStopSelection() {
				return null;
			}
		};
	}

	@Override
	public void onLoadFinished(Loader<List<BusStop>> loader, List<BusStop> list) {
		//TODO set list to adapter
	}

	@Override
	public void onLoaderReset(Loader<List<BusStop>> loader) {
		//TODO clear adapter
	}
}